package cn.zyq.ykb.beans.config;

import cn.zyq.ykb.system.common.BaseBean;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 基础信息配置对象 configInfo
 *
 * @author SystemAuth
 * @date 2023-05-22
 */
@Data
@Entity
@Table(name = "`configInfo`")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class ConfigInfo  extends BaseBean implements Serializable {
    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`configInfoID`")
    @ApiModelProperty("主键id，用于关联")
    private Integer configInfoID;
    /**
     * 注意事项
     */
    @Column(name = "`note`")
    @ApiModelProperty("内容")
    private String note;
    /**
     * 用户协议
     */
    @Column(name = "`state`")
    @ApiModelProperty("类型（1.注意事项，2.隐私协议，3用户协议）")
    private Integer state;

    @Transient
    private String convert;
}
